Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes instance lock error message, staleTimer, and cacheTimer #1633

Open
wants to merge 1 commit into
base: dev/10.3.1
Choose a base branch
from

Conversation

chrissolanilla
Copy link
Contributor

This addresses issue #1583 where collaborators of a widget are not meant to edit a widget at the same time. Normally this does not happen, but it was still possible to edit a widget without acquiring the lock for the widget by copy-pasting the link of the creator into the browser.

When they do this now, they are met with an informative alert and it prevents them from being able to close the alert or edit the widget. Additionally, the staleTimer was set to infinity before, which was responsible for requesting the key to the lock. The original creator would hold the lock for 2 minutes but after that it would not do more requests. This PR aims to fix this by adding 2 minutes to the staleTimer in addition adding 3 minutes for the cacheTimer to get rid of the cache every 3 minutes.

There was a minor bug on the include.scss where a dark mode style would be applied as well, I also fixed that with Simon's help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant